<?php
 
class Tarea_Model_DbTable_Tarea extends Zend_Db_Table_Abstract {

    protected $_name = 'tarea';

    public function add($data) {
        $this->insert($data);
    }

    public function edit($data, $idtarea) {
        $this->update($data, 'id = ' . (int) $idtarea);
    }

    public function remove($idtarea) {
        $this->delete('id = ' . (int) $idtarea);
    }

    public function view() {
        return $this->fetchAll();
    }



}
